package example.config;

import example.processor.Cat;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 *  BeanFactoryPostProcessor 后置处理器
 *  BeanDefinitionRegistryPostProcessor 后置监听器
 *  ApplicationListener：监听容器中发布的事件， 事件驱动模型开发
 */
@Configuration
@ComponentScan(basePackages = {"example.processor", "example.listener"})
public class SpringConfig3 {
    @Bean
    public Cat cat() {
        return new Cat();
    }
}




